package com.scsj.supermarket.base;

import android.content.Context;

import com.scsj.supermarket.bean.TreasureBean;

import rx.Subscription;
import dkmvp.net.ResponseCallback;

/**
 *  基础类，在这里实现MVP,分别定义view，presenter，model中所需的方法
 */

public class TreasureBase {

    public interface IView {

        void showSuccessMsg(String s);

        void showErrorMsg(String s);

        void setData(TreasureBean treasureBean);
    }

    public interface IPresenter {

        void deliverList(Context context, String token);
    }

    public interface IModel {

        Subscription getData(Context context, String token, ResponseCallback<TreasureBean> callback);
    }
}
